<!--
title: 配置管理
description: 
published: true
date: 2025-06-17T04:46:13.799Z
tags: 
editor: ckeditor
dateCreated: 2025-06-17T04:22:20.573Z
-->

<h1>获取配置</h1>
<p>&nbsp;</p>
<pre><code class="language-plaintext"># 获取项目配置
data = config.get(key)</code></pre>
<p>&nbsp;</p>
<ul>
  <li>参数说明<br>key：配置名</li>
</ul>
<p>&nbsp;</p>
<h1>简单示例</h1>
<p>&nbsp;</p>
<pre><code class="language-plaintext"># 以接口代码为例

# 导入SDK 
global log_print 

# 获取项目配置
port = config.get("SERVER_PORT")

# 打印日志
log_print(port, "INFO")

接口返回配置内容
return port</code></pre>
<p>&nbsp;</p>
